reply
Type
command
Summary
Returns data to an application that sent LiveCode an Apple Event.
Syntax
reply <string> [with keyword <aeKeyword>]
reply error <string>
Description
Use the reply command to interact with another application via Apple events.
The reply command for inter-application communication is analogous to the return control structure for inter-handler communication.
When a program responds to an Apple event, it returns several different pieces of information. Each piece corresponds to an Apple event keyword. Use the reply with aeKeyword form of this command to specify which pieces you want to reply with.
The form
reply string
is equivalent to
reply string with keyword \"----\"
The form
reply error string
is equivalent to
reply string with keyword \"errs\"
For more information about Apple events, refer to the section entitled "Apple Events Sent by the Mac OS" in the technical documentation section located on [Apple's website] (http://developer.apple.com/documentation/coreservices/apple_events).
Parameters
Name | Type | Description |
---|---|---|
string | string | The string to send as Apple event data. |
aeKeyword | The Apple event keyword. |
Examples
reply "Connection established"
reply line thisLine of field "AE Replies"
reply "45" with keyword "errn"
reply error "Not found."
Related
command: send to program
constant: return
glossary: Apple Event, command, return, control structure
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
Platforms
desktop
server